package com.woniuxy.sale.testRabbitMQ;

import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author: CHL  <br/>
 * @ToDo: 打包消费者第一位
 * Date: 2022/4/28:17:02  <br/>
 * Description:
 */
@Component
public class PackingListConsumer1 {
//    @Resource
//    AmqpTemplate amqpTemplate;


    //监听消息队列
    @RabbitListener(queues = "packingList_queue")
    public void receiver(String msg){
        System.out.println("打包消费者1收到："+msg);
    }
}
